package com.charging.business.exception;

/**
 * 自定义异常提示信息
 *
 * @author JerryLu
 * @date 2024/8/6 17:43
 */
public class CustomizeException extends Exception {

    private static final long serialVersionUID = 1L;

    private final String customMessage;

    public CustomizeException(String message) {
        super(message);
        this.customMessage  = message;
    }

    public boolean hasCustomMessage() {
        return !customMessage.isEmpty();
    }

    public String getCustomMessage() {
        return customMessage;
    }
}

